import request from '@/utils/request'

// 查询分成设置列表
export function listGradeConfig(query) {
  return request({
    url: '/gradeConfig/gradeConfig/list',
    method: 'get',
    params: query
  })
}

// 查询分成设置详细
export function getGradeConfig(id) {
  return request({
    url: '/gradeConfig/gradeConfig/' + id,
    method: 'get'
  })
}

// 新增分成设置
export function addGradeConfig(data) {
  return request({
    url: '/gradeConfig/gradeConfig',
    method: 'post',
    data: data
  })
}

// 修改分成设置
export function updateGradeConfig(data) {
  return request({
    url: '/gradeConfig/gradeConfig',
    method: 'put',
    data: data
  })
}

// 删除分成设置
export function delGradeConfig(id) {
  return request({
    url: '/gradeConfig/gradeConfig/' + id,
    method: 'delete'
  })
}
